//
//  NSData+Addtion.h
//  MrWrite
//
//  Created by lilg on 13-8-15.
//  Copyright (c) 2013年 Founder. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSData (MBBase64)

+ (id)dataWithBase64EncodedString:(NSString *)string;


- (NSString *)base64Encoding;

/*
 * 图片转换为字符串
 */
+ (NSString *) image2String:(UIImage *)image;

/*
 * 字符串转换为图片
 */
+ (UIImage *) string2Image:(NSString *)string;

@end
